package net.lanelife.casino.caipiao.entity.statistics;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import net.lanelife.casino.caipiao.entity.statistics.support.BaseStatistics;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Type;
import org.joda.time.LocalDate;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "TB_COMPANY_DAILY_STATISTICS", indexes = {
		@Index(columnList = "REPORT_DATE", unique = true)
})
public class CompanyDailyStatistics extends BaseStatistics<Integer> {

	private static final long serialVersionUID = -4277109818979352944L;

	// ================================= 报表日期 =================================
	
	@Column(name = "REPORT_DATE", nullable = false)
	@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDate")
	protected LocalDate reportDate;

	public LocalDate getReportDate() {
		return reportDate;
	}

	public void setReportDate(LocalDate reportDate) {
		this.reportDate = reportDate;
	}
	
}
